package com.luckmgr.entity.db;

import java.util.Date;
import java.util.concurrent.atomic.AtomicInteger;

public class LevelPrize {
    private Integer id;

    private Integer activityId;

    private String activityName;

    private Integer levelId;

    private String levelName;

    private Integer prizeId;

    private String prizeCode;

    private Integer prizeOrig;

    private Integer prizeNumber;
    
    private AtomicInteger atomicPrizeNumber;

    private String prizeName;

    private Integer idMax;

    private Integer idMin;

    private String operatorName;

    private String operatorIp;

    private Date lastTime;
    
    public void setPrizeNumber(Integer prizeNumber) {
        this.prizeNumber = prizeNumber;
        if(null != prizeNumber){
        	 atomicPrizeNumber = new AtomicInteger(prizeNumber);
        }else{
        	 atomicPrizeNumber = new AtomicInteger();
        }
       
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName == null ? null : activityName.trim();
    }

    public Integer getLevelId() {
        return levelId;
    }

    public void setLevelId(Integer levelId) {
        this.levelId = levelId;
    }

    public String getLevelName() {
        return levelName;
    }

    public void setLevelName(String levelName) {
        this.levelName = levelName == null ? null : levelName.trim();
    }

    public Integer getPrizeId() {
        return prizeId;
    }

    public void setPrizeId(Integer prizeId) {
        this.prizeId = prizeId;
    }

    public String getPrizeCode() {
        return prizeCode;
    }

    public void setPrizeCode(String prizeCode) {
        this.prizeCode = prizeCode == null ? null : prizeCode.trim();
    }

    public Integer getPrizeOrig() {
        return prizeOrig;
    }

    public void setPrizeOrig(Integer prizeOrig) {
        this.prizeOrig = prizeOrig;
    }

    public Integer getPrizeNumber() {
        return prizeNumber;
    }


    public String getPrizeName() {
        return prizeName;
    }

    public void setPrizeName(String prizeName) {
        this.prizeName = prizeName == null ? null : prizeName.trim();
    }

    public Integer getIdMax() {
        return idMax;
    }

    public void setIdMax(Integer idMax) {
        this.idMax = idMax;
    }

    public Integer getIdMin() {
        return idMin;
    }

    public void setIdMin(Integer idMin) {
        this.idMin = idMin;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName == null ? null : operatorName.trim();
    }

    public String getOperatorIp() {
        return operatorIp;
    }

    public void setOperatorIp(String operatorIp) {
        this.operatorIp = operatorIp == null ? null : operatorIp.trim();
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

	public AtomicInteger getAtomicPrizeNumber() {
		return atomicPrizeNumber;
	}

	public void setAtomicPrizeNumber(AtomicInteger atomicPrizeNumber) {
		this.atomicPrizeNumber = atomicPrizeNumber;
	}
    
    
}